package com.ruoyi.etp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.etp.mapper.EtpServiceQualityRecordsMapper;
import com.ruoyi.etp.domain.EtpServiceQualityRecords;
import com.ruoyi.etp.service.IEtpServiceQualityRecordsService;

/**
 * 服务记录Service业务层处理
 * 
 * @author xmj
 * @date 2025-09-12
 */
@Service
public class EtpServiceQualityRecordsServiceImpl implements IEtpServiceQualityRecordsService 
{
    @Autowired
    private EtpServiceQualityRecordsMapper etpServiceQualityRecordsMapper;

    /**
     * 查询服务记录
     * 
     * @param id 服务记录主键
     * @return 服务记录
     */
    @Override
    public EtpServiceQualityRecords selectEtpServiceQualityRecordsById(Long id)
    {
        return etpServiceQualityRecordsMapper.selectEtpServiceQualityRecordsById(id);
    }

    /**
     * 查询服务记录列表
     * 
     * @param etpServiceQualityRecords 服务记录
     * @return 服务记录
     */
    @Override
    public List<EtpServiceQualityRecords> selectEtpServiceQualityRecordsList(EtpServiceQualityRecords etpServiceQualityRecords)
    {
        return etpServiceQualityRecordsMapper.selectEtpServiceQualityRecordsList(etpServiceQualityRecords);
    }

    /**
     * 新增服务记录
     * 
     * @param etpServiceQualityRecords 服务记录
     * @return 结果
     */
    @Override
    public int insertEtpServiceQualityRecords(EtpServiceQualityRecords etpServiceQualityRecords)
    {
        return etpServiceQualityRecordsMapper.insertEtpServiceQualityRecords(etpServiceQualityRecords);
    }

    /**
     * 修改服务记录
     * 
     * @param etpServiceQualityRecords 服务记录
     * @return 结果
     */
    @Override
    public int updateEtpServiceQualityRecords(EtpServiceQualityRecords etpServiceQualityRecords)
    {
        return etpServiceQualityRecordsMapper.updateEtpServiceQualityRecords(etpServiceQualityRecords);
    }

    /**
     * 批量删除服务记录
     * 
     * @param ids 需要删除的服务记录主键
     * @return 结果
     */
    @Override
    public int deleteEtpServiceQualityRecordsByIds(Long[] ids)
    {
        return etpServiceQualityRecordsMapper.deleteEtpServiceQualityRecordsByIds(ids);
    }

    /**
     * 删除服务记录信息
     * 
     * @param id 服务记录主键
     * @return 结果
     */
    @Override
    public int deleteEtpServiceQualityRecordsById(Long id)
    {
        return etpServiceQualityRecordsMapper.deleteEtpServiceQualityRecordsById(id);
    }
}
